﻿using System.Collections.Generic;

namespace CleanArchitecture.Infrastructure.Models.SystemManage
{
    /// <summary>
    /// 数据字典树
    /// 与前端使用js控件对应: 按layui-tree要求格式返回数据 
    /// </summary>
    public class SystemDataDicTreeNodeModel
    {
        public SystemDataDicTreeNodeModel()
        {
            children = new List<SystemDataDicTreeNodeModel>();
            href = "";
        }
        public int id { get; set; }
        public int pid { get; set; }
        public string title { get; set; }
        public int grouptype { get; set; }
        public int datatype { get; set; }
        public bool spread { get; set; }
        public string href { get; set; }
        public string name { get; set; }
        public string value { get; set; }
        public int displayorder { get; set; }
        public IList<SystemDataDicTreeNodeModel> children { get; set; }
    }

    /// <summary>
    /// 系统菜单树
    /// 与前端使用js控件相关联，返回layui-tree所支持格式
    /// </summary>
    public class SystemModuleTreeNodeModel
    {
        public SystemModuleTreeNodeModel()
        {
            children = new List<SystemModuleTreeNodeModel>();
            href = "";
        }
        public int id { get; set; }
        public int pid { get; set; }
        public string title { get; set; }
        public int moduletype { get; set; }
        public bool spread { get; set; }
        public string href { get; set; }
        public bool disabled { get; set; }
        public IList<SystemModuleTreeNodeModel> children { get; set; }
    }
}
